<?php
/**
 * Model Traits SchoolTimetable
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model\curriculum;

Trait Curriculum {

    public function teacher()
    {
        return $this->belongsToMany('Teacher', '\\app\\admin\\model\\curriculum\\CurriculumTeacher', 'tid', 'cid');
    }

}